/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-26
 * Time: 21:22
 */
// 实现类必须覆盖eat()
public class Magpie implements Bird {
    //如果不覆盖会报错：java: Magpie不是抽象的, 并且未覆盖Bird中的抽象方法eat()
    @Override
    public void eat() {
        System.out.println("鸟吃饭");
    }
}

